package myjava.b_array;

/**
 * @Auther: cty
 * @Date: 2019/10/29
 * @Description: 测试二维数组
 * @version: 1.0
 */
public class B_Test2DArray {
    public static void main(String[] args) {
        int[][] a = new int[3][];
        a[0] = new int[]{20,30};
        a[1] = new int[]{10,15,80};
        a[2] = new int[]{50,60};
        System.out.println(a[1][2]);

        System.out.println("###########################");

        int[][] b = {{1,2},{3,4,5},{6,7}};
        System.out.println(b[1][2]);
    }
}
